using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;


using buildingLib.engineering;
namespace _dmis.engineering
{
    public partial class MaintainVisit : UIFormBase
    {
        buildingLib.engineering.MaintainVisit m_visit;
        public MaintainVisit(Guid maintainID)
        {
            InitializeComponent();
            maintainVisitBindingSource.DataSource = m_visit = buildingLib.engineering.MaintainVisit.New(maintainID);
        }

        private void btn_OK_Click(object sender, EventArgs e)
        {
            maintainVisitBindingSource.EndEdit();
            maintainVisitBindingSource.RaiseListChangedEvents = false;

            m_visit.Save();

            this.DialogResult = DialogResult.OK;

        }
    }
}